﻿<UserControl x:Class="HeritageAcademy.Window.TestWizardView"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Shared="clr-namespace:HeritageAcademy.Shared"
    xmlns:Resources="clr-namespace:HeritageAcademy.Window.Resources"
	mc:Ignorable="d"
	d:DesignWidth="635.3" d:DesignHeight="514.564">

	<Grid x:Name="grid" Background="#FFFFCC70">
		<Grid.RowDefinitions>
			<RowDefinition/>
			<RowDefinition Height="40"/>
		</Grid.RowDefinitions>
		
        <!-- Bottom line backgrtound-->
        <RepeatButton x:Name="ReturnBackButton" Style="{DynamicResource OpacityRepeatButton}" Focusable="True" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" Cursor="Hand" Padding="18,0,0,0" ToolTip="{x:Static Resources:Strings.Window_GoBack}" Width="100" Height="40" Margin="0,-40,0,0" HorizontalAlignment="Left" VerticalAlignment="Top" d:LayoutOverrides="Width">
        	<Shared:Bitmap Source="/HeritageAcademy.Window;component/Resources/Images/arrow_back.png" />
        </RepeatButton>
        
        <Grid x:Name="grdBottomLine" Grid.Row="1">
        	<Grid.ColumnDefinitions>
        		<ColumnDefinition Width="0.5*"/>
        		<ColumnDefinition Width="Auto" MinWidth="64.801"/>
        		<ColumnDefinition Width="0.5*"/>
        	</Grid.ColumnDefinitions>
		
        	<!-- Bottom line background-->       
        	<Border x:Name="brdBottom" BorderBrush="#727A5C27" BorderThickness="0,1,0,0" Height="40" SnapsToDevicePixels="True" Grid.ColumnSpan="3">
        		<Border.Background>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="White" Offset="1"/>
        				<GradientStop Color="#FFD4D4D4"/>
        			</LinearGradientBrush>
        		</Border.Background>
        	</Border>

        	<!-- Previous Page Button -->
            <RepeatButton x:Name="PreviousPageButton" Style="{DynamicResource OpacityRepeatButton}" Focusable="True" HorizontalContentAlignment="Left" VerticalContentAlignment="Center" Cursor="Hand" Padding="18,0,0,0" ToolTip="{x:Static Resources:Strings.Wizard_PreviousPage}" Command="{Binding MovePreviousCommand}">
        		<Shared:Bitmap Source="/HeritageAcademy.Window;component/Resources/Images/arrow_prev.png" />
        	</RepeatButton>
        
        	<!-- Next Page Button -->
            <RepeatButton x:Name="NextPageButton" Style="{DynamicResource OpacityRepeatButton}" Focusable="True" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" Cursor="Hand" Padding="0,0,18,0" ToolTip="{x:Static Resources:Strings.Wizard_NextPage}" Command="{Binding MoveNextCommand}" Grid.Column="2">
        		<Shared:Bitmap Source="/HeritageAcademy.Window;component/Resources/Images/arrow_next.png" />
        	</RepeatButton>
        	
            <!-- Position -->
            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Grid.Column="1">
        		<TextBlock x:Name="tbCurrentPageNumber" TextWrapping="Wrap" Text="{Binding CurrentPage.Number}" HorizontalAlignment="Left" VerticalAlignment="Center" TextOptions.TextFormattingMode="Display"/>
        		<TextBlock Text="из" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="6,0" TextOptions.TextFormattingMode="Display"/>
        		<TextBlock x:Name="tbAllPagesNumber" TextWrapping="Wrap" Text="{Binding PageCount}" HorizontalAlignment="Left" VerticalAlignment="Center" TextOptions.TextFormattingMode="Display"/>
        	</StackPanel>
		
        </Grid>
		
        <!-- Main test frame -->
        <Frame x:Name="frmPage" Source="{Binding CurrentPage.Source}" NavigationUIVisibility="Hidden" Focusable="False" Margin="20" Background="White" >
        	<Frame.Effect>
        		<DropShadowEffect BlurRadius="10" ShadowDepth="0" Opacity="0.35"/>
        	</Frame.Effect>
        </Frame>
        
        <!-- Timer -->
        <Shared:DigitalTimer x:Name="dtDurationTime" VerticalAlignment="Top" Margin="0,-30,0,0" HorizontalAlignment="Center" FontSize="14"/>
        
    </Grid>
</UserControl>